package com.atguigu.ssyx.payment.service;

import com.atguigu.ssyx.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * ClassName: PaymentInfoService
 * Package: com.atguigu.ssyx.payment.service
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-10-17
 * Time: 15:49
 */

public interface PaymentInfoService extends IService<PaymentInfo> {
    //根据orderNo查询支付记录
    PaymentInfo getPaymentInfoByOrderNo(String orderNo);

    //添加支付记录
    PaymentInfo savePaymentInfo(String orderNo);


    //支付成功 修改支付记录表状态 已经支付
    //支付成功 修改订单记录已经支付 库存扣减
    void paySuccess(String out_trade_no, Map<String, String> reslutMap);
}
